package org.flexspeedup.blog.types
{
public class ServiceType
{
    //----------------------------------
    //  ECHO
    //----------------------------------
    /**
     * Test service
     */
    public static const ECHO:String = "echo";
    
    //----------------------------------
    //  SAVE_POST
    //----------------------------------
    /**
     * Saves a post into the database
     */
    public static const SAVE_POST:String = "savePost";

    //----------------------------------
    //  CREATE_POST
    //----------------------------------
    /**
     * Creates a new post and then saves it 
     */
    public static const CREATE_POST:String = "createPost";
    
    //----------------------------------
    //  GET_POSTS
    //----------------------------------
    /**
     * Retrieves a page of posts
     */
    public static const GET_POSTS:String = "getPosts";

    //----------------------------------
    //  LOGOUT
    //----------------------------------
    /**
     * Returns an URL to follow to end the current session
     */
    public static const LOGOUT:String = "logout";

    //----------------------------------
    //  GET_CURRENT_USER
    //----------------------------------
    /**
     * Returns the current authenticated user
     */
    public static const GET_CURRENT_USER:String = "getCurrentUser";
    
    //----------------------------------
    //  DELETE_POST
    //----------------------------------
    /**
     * Deletes a post from the datastore
     */
    public static const DELETE_POST:String = "deletePost";
    
    //----------------------------------
    //  CREATE_CATEGORY
    //----------------------------------
    /**
     * Creates a new post category in the backend
     */
    public static const CREATE_CATEGORY:String = "createCategory";

    //----------------------------------
    //  SAVE_STATIC_PAGE
    //----------------------------------
    /**
     * Saves / updates an static page in the datastore
     */
    public static const SAVE_STATIC_PAGE:String = "saveStaticPage";
    
    //----------------------------------
    //  GET_STATIC_PAGE
    //----------------------------------
    /**
     * Fetches a static page from the datastore
     */
    public static const GET_STATIC_PAGE:String = "getStaticPage";

    //----------------------------------
    //  GET_PROJECTS
    //----------------------------------
    /**
     * Fetches a page of projects
     */
    public static const GET_PROJECTS:String = "getProjects";

    //----------------------------------
    //  SAVE_PROJECT
    //----------------------------------
    /**
     * Saves an existing project (overwrite)
     */
    public static const SAVE_PROJECT:String = "saveProject";

    //----------------------------------
    //  CREATE_PROJECT
    //----------------------------------
    /**
     * Creates a new project in the datastore
     */
    public static const CREATE_PROJECT:String = "createProject";

    //----------------------------------
    //  GET_FILES
    //----------------------------------
    /**
     * Returns the list of uploaded files 
     */
    public static const GET_FILES:String = "getFiles";

    //----------------------------------
    //  DELETE_PROJECT
    //----------------------------------
    /**
     * deletes a project
     */
    public static const DELETE_PROJECT:String = "deleteProject";

    //----------------------------------
    //  GET_ALL_PROJECTS
    //----------------------------------
    /**
     * Fetches all the projects
     */
    public static const GET_ALL_PROJECTS:String = "getAllProjects";
}
}